﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - My ASP.NET Application</title>

    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/bundles/jqueryval")
    
    <script type="text/javascript" src="~/Scripts/kendo/2013.2.918/jquery.min.js"></script>
    <script type="text/javascript" src="~/Scripts/kendo/2013.2.918/kendo.all.min.js"></script>
    <script type="text/javascript" src="~/Scripts/kendo/2013.2.918/kendo.aspnetmvc.min.js"></script>
    
    <link href="~/Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/kendo/2013.2.918/kendo.common.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/kendo/2013.2.918/kendo.dataviz.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/kendo/2013.2.918/kendo.default.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/kendo/2013.2.918/kendo.dataviz.default.min.css" rel="stylesheet" type="text/css" />

    @RenderSection("scripts", required: false)
    <link href="/Content/MenuDropDownAree.css" rel="stylesheet" />
    <link href="../../../../Content/BackOffice.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        $(document).ready(function () {
            $('#nav li').hover(
                function () {
                    //mostra sottomenu
                    $('ul', this).stop(true, true).delay(50).slideDown(100);
                },
                function () {
                    //nascondi sottomenu
                    $('ul', this).stop(true, true).slideUp(200);
                }
            );
        });

        //da chiamare alla esecuzione di ogni vista parziale, elimina il messaggio di errore nella masterpage
        //in divMessage dobbiamo andare ad inserire il messaggio di errore
        function resetErrorMessage() {
            jQuery('#divMessage').empty();
        }

        function setErrorMessage(htmlError) {
            jQuery('#divMessage').html(htmlError);
        }

    </script>
    
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                @Html.ActionLink("rosata Backoffice", "Index", "Index", null, new { @class = "navbar-brand" })
            </div>
            
            @RenderSection("MenuBackoffice", false)

            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                </ul>
            </div>
        </div>
    </div>

    <div class="container body-content">
        
        @RenderBody()

        <hr />

        <div id="divMessage">

        </div>

        <footer>
            <p>@DateTime.Now.Year</p>
        </footer>
    </div>
   
</body>
</html>